﻿using Abp.Application.Services.Dto;
using AppFramework.App.Client.ApiClient;
using AppFramework.App.Shared.Authorization.Users.Dto;
using AppFramework.App.Shared.Authorization.Users;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace AppFramework.App.Client.Authorization.Users
{
    public class UserLoginAppService : ProxyAppServiceBase, IUserLoginAppService
    {
        public UserLoginAppService(AbpApiClient apiClient) : base(apiClient)
        {
        }

        public async Task<PagedResultDto<UserLoginAttemptDto>> GetUserLoginAttempts(GetLoginAttemptsInput input)
        {
            return await ApiClient.GetAsync<PagedResultDto<UserLoginAttemptDto>>(GetEndpoint(nameof(GetUserLoginAttempts)), input);
        }
    }
}
